Fixed problem with alternating controls on restart.

GoalReached flag in Controller was being removed by using XOR each time asked for turning this flag off.
This was leading to problems when flag was not enabled in the moment of it's "removal".
Created helper static method to cover this case.