Updated Player source code

Added new algorithm that attempts to avoid red squares