Added capture and end conditions

Game is now fully functional (no bells and whistles and no AI yet)