fixed math to get game by canvas coords on mouse click