conditionals in mainhandler for displaying player