Update main/Screen.java

fixed continuous calculation