You work in technical support and built a new tool without management's permission.
You used company time to do something other than your job.
You included a hidden game designed to allow you and others to misuse company resources.
And you wonder why you are having personal issues with your manager who doesn't trust you?
You're not a criminal.
You're simply unemployable.