Add computer player
Add unittests and fix issue #1