created system to show errors or messages to players