added two player fuctionality