Finished project, the game now ends when the king is taken