completely reorganized the end_of_turn.php file (sequence => class)