Updated with ai and player chooser. Only twoplayer works