add method getMousePosition and contains