Add beginnings of computer player AI
Remove swp files from tracking in git
Moved js code into lib directory
Added some tests for computer player AI