All mistakes were fixed

1) 'and' ---> '&&'
2) 'flag' ---> 'restart_and_clear_marker'
3) function "clear_console": now local variable "i" is initialized in the condition of the cycle
4) Message about incorrect degree was changed: "later" ---> "again"
5) Magic numbers were deleted from conditions(except 2)
Thank you so much for being so attentive to my code.