Update MainActivity.java

Biggest change was creating one variable for size instead of several.