checking if player win or loose, added smooth moving