Fixed greedyPlayer and manual mode gameplay issues. Code revision/optimization