If there is a tie between moves, will now randomly choose one

This closes #1.