def CheckWallCollision (_Object1, _Width, _Height):
    """ Checks if the players has collided with any of the walls """

    if _Object1.X == 0:
        return True, 'Left Wall'

    elif _Object1.X == _Width - _Object1.Width:
        return True, 'Right Wall'

    elif _Object1.Y == 0:
        return True, 'Top Wall'

    elif _Object1.Y == _Height - _Object1.Height:
        return True, 'Bottom Wall'

    return False, None