* General changes
* Modified function updateBoard so now it returns the score
* Added function checkEnd