Bad implementation of mouse controls