As I don’t know your game, it would be helpful if you can upload a sketch of the screen. The sketch needs to show the player, obstacles/elements and “enemy” of a level.

I simply don’t understand what you’re trying to implement.. :?