fixed errors
added end turn functionality and button