Fixes

Fixed problem where if the mouse was clicked inside the panel outside
the tile field the program would crash.