In this post, the boss will detect if there is a positive powerup traveling below it. If yes, it will suck it towards…