Add mock random generator
Make game action handlers separate functions.