class Solution(object):
    def stoneGame(self, piles):
        """
        :type piles: List[int]
        :rtype: bool
        """
#         alex = 0
#         lee = 0
#         while(piles):
#             if piles[0] >= piles[-1]:
#                 alex += piles[0]
#                 piles = piles[1:]
#             else:
#                 alex += piles[-1]
#                 piles = piles[:-1]
                
#             if piles[0] >= piles[-1]:
#                 lee += piles[0]
#                 piles = piles[1:]
#             else:
#                 lee += piles[-1]
#                 piles = piles[:-1]  
                
        return True
            