implemented all the turn based related code. Just need to test it now