Found bug in point function. Fixed it. Forgot to remove selectedTool variable