Fixed the problem in the gamewindow class, fixed a few warnings as well. It seems like the mousetest still works except for the right mouse button