Made exception handling in class Player