Fixed click(int x, int y, boolean rightClick) so it actually uses the rightClick variable