Fixed a glitch and added a turn counter