Added random move code