fixing collision logic for player + enemy