fix minor bug in main_loop
bit of work on replCorrect