Rubys adventure, weird bug

Hello everyone! I hope I am posting this in the right place. Im just getting started with unity and C# and I am following the rubys adventure tutorial right now. But I have gotten a weird bug and Im not certain if it is the script(which it shouldnt be since I just wrote what is in the guide) or Unity it self.

I am at the part where you start scripting the first enemy. When I start the game and my main character collides with the enemy character the controls stop working for the character and it sort of floats away to the side when I push any of the arrowkeys. It always floats away from the enemy character.

Is it a bug in the collision detecting system or is it more probable that it is a bug in my scripts?

edit: I tried including the code but just got a message that it contained spam or something. Will try again.

I am using Unity 2019.1.8f1

My tiles reset themselves and no image shows up (sometimes) in 2d Tile Pallete. Not sure why this happens.