Fix bug.
(stickCount = 0) should have been (stickCount == 0)
Made a number of small corrections and simplifications pointed out by Intellij.
Used spaces for intentation instead of a mix fo tabs and spaces. It does not matter much whether you use tabs or spaces, but it is very important to be consistent.