Fixed an error that sometimes caused GAMEOVER even if the operation was perfect.