Fixed bug that makes you lose if you fastly change direction