removed error when mouse clicks or moves outside of map and added fps counter