Basic click detection implemented

Some code changes:
- Fixed tile functions not being members of mechanics
- Split graphics updateState into updateBoard and updateTimer