Implemented rudimentary AI player