CookieSelection - Working, needs improvement
Improved - should be implemented using priority queues