throwing function fully implemented. Added a boolean to tell if the box is inGame