Finished newGame function. Everything should work..
Added the basic next move checker. Does not comply with the API (didn't have it while writing it). So things still need to be fixed (BUT IT WORKS)
Fixed small bugs (mainly lack of semicolons...