Wrote AI randomMove function, commented code