Added turn functionality and phases