updated code but still fixing glitch for monkey to decide move
fixed glitch, game should work now, but perhaps too optimally for monkey? Please test it out lots! :-)