HUGE bug fixes

-Turn taking was a bit screwy.
-Illegal actions were being generated pretty often by both RandomAgent
and GreedyAgent, leading to poor run times.
-Initial percept infrastructure implemented.