modified behavior of player with menu opening  and lcosing