make move function working and can play against random and pre-trained