Added turn logic