that movie pissed me off too, I didnt get the ending was he or was he not crazy

Was the entire movie his bullshit imagination? Horrible confusing ending..
I was pissed off because I guessed the twist in 5 minutes (although i didn't guess the full context), and the storyline was bullshit.
The twist was that the whole detective story was part of a role playing psychotherapy so it would heal him of his paranoid schizophrenia. His schizophrenic fantasy was that he was a detective who was trying to uncover a conspiracy at the mental hospital.
At the very end he was aware of the person he'd become (a violent insane individual) and didn't want to continue living so pretended to still have his alter-ego as the detective so he would have a lobotomy.
Piece of shit.
Dude, so strange

why would you even consider watching that?

My friend gets free tickets and so many people liked the first one so we thought we'd watch it. We were 20 minutes late and couldn't figure out what we could possibly have missed in those 20 minutes.
We were subjected to pots, and objects moving for the next 40 minutes, and then some crappy text ending after they crammed some shitty jerky camera action sequences into the last 15 minutes... complete fucking bullshit.