Add testGame impl, tweak javac and junit tasks in Rakefile.
Write tests and other cleanups.
Remove diff accidentally added.