deleted unnecessary variables
implemented forever loop in player

parameters needed: #of commands inside