added make random move and some other functions