Made valid moves way faster