Fix bug with NullPointer on gamefield call.
Update AI move calculation to avoid unnecessary operations.