added main and player