Winner

 Implemented the checkMate function. When an user sets the opponent in check mate a popup window appears that informs the user of the win. When the user presses ok the game restarts. Also the player can't move to a position where he puts himself in check. Also changed so that not the whole board is re-rendered every time a move id made but only the affected positions. This eliminates most of the GUI glitches.