Add collision resolution and detection for Ninja

Add collision resolution and detection for the ninja with walls.