Implementing a simple tennis game in Java.