Fixed it - the player now hides when it touches the enemy Btw the problem was that the code that hides the player needed a forever loop
I also cleaned up a bit of the code and made the player face the cursor