Small Bug fix Invalid move