Added some handling for player management.
Added a class to handle logic exceptions.