Fix bug in get random move