Changed references
Changed the code and added fixes so the player and monster don’t go
off-screen