Switch Statement and Test Linkage b/w Play and Stats Panels

Replaced the if-else logic with switch statement.