error checks

+added checks if the player input is correct
-changed to c++11 enums
-fixed some warnings